<template>
  <a-modal
    :title="title"
    :visible="visible"
    :mask-closable="false"
    :body-style="{paddingBottom: '8px'}"
    :confirm-loading="submitLoading"
    @ok="handleSubmit"
    @cancel="handleClose"
  >
    <a-form
      :form="form"
      :label-col="labelCol"
      :wrapper-col="wrapperCol"
    >
      <a-form-item label="编号">
        <a-input v-decorator="['machineCode']" placeholder="编号" />
      </a-form-item>
      <a-form-item label="名称">
        <a-input v-decorator="['machineName']" placeholder="名称" />
      </a-form-item>
      <a-form-item label="类型">
        <a-input v-decorator="['machineType']" placeholder="类型" />
      </a-form-item>
      <a-form-item label="加工能力">
        <a-input v-decorator="['processingCapability']" placeholder="加工能力" />
      </a-form-item>
      <a-form-item label="所属工作中心编号">
        <a-input v-decorator="['workCenterCode']" placeholder="所属工作中心编号" />
      </a-form-item>
      <a-form-item label="小时成本_N">
        <a-input v-decorator="['hourlyCost']" placeholder="小时成本_N" />
      </a-form-item>
    </a-form>
  </a-modal>
</template>

<script>
import { PopUpFormMixin } from '@/mixins'
import { addObj, putObj } from '@/api/ProductionProcesses/t-machine-info'

export default {
  name: 'TMachineInfoModalForm',
  mixins: [PopUpFormMixin],
  data () {
    return {
      reqFunctions: {
        create: addObj,
        update: putObj
      },

      labelCol: {
        sm: { span: 24 },
        md: { span: 5 }
      },
      wrapperCol: {
        sm: { span: 24 },
        md: { span: 19 }
      },

      // 校验配置
      decoratorOptions: {}
    }
  },
  methods: {}
}
</script>